<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>随访家园患者端</title>
	  <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
	  <meta name="apple-mobile-web-app-capable" content="yes">
	  <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="shortcut icon" href="/favicon.ico">
    <link rel="bookmark" href="/favicon.ico"/>
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
  </head>
  <body>
    <div id="app">
    </div>

		<!--正式引用-->
    <script type='text/javascript' src='http://wx.jk7.com/html/js//zepto-v1.2.0-min.js' charset='utf-8'></script>
    <script type="text/javascript" src='http://wx.jk7.com/html/js/MPreview.mobile.min.js' charset='utf-8'></script>
    <script type="text/javascript" src='https://res.wx.qq.com/open/js/jweixin-1.0.0.js' charset='utf-8'></script>
	<script type="text/javascript" src='http://wx.jk7.com/html/js/highcharts/highcharts.js' charset='utf-8'></script>
	<script type="text/javascript" src='http://wx.jk7.com/html/js/highcharts/data.js' charset='utf-8'></script>


    <script type="text/javascript">

	    // 全局变量：htmlSrc => 带有wx参数的路径
	    iosUrl = window.location.href

	  //  openID = 'oA7H4wDpGS-cHnUVlb3XmwAnSDaw' // 本地测试  oA7H4wIdzyGMVBG6q9kF6-tGT674 // oA7H4wDNj-p9U9LWmMZT_oSTfQ5U => Lili oiQzTjlkhtQvz2l5fkQ3sIhsd3rU   oiQzTjn9Z8qqdvYGZ3QZJStMlBHo
	    openID = ''
	    function getOpenID() {
		     var src = window.location.search;
		     var a = src.indexOf('code');
		     var b = src.indexOf('&state');

		     var code = src.substr(a + 5, b - (a + 5));

		     //获取openid
		     $.ajax({
				     url: 'http://wx.jk7.com/api/UserInfo',
				     type: 'GET',
				     dataType: "text",
				     contentType: 'application/x-www-form-urlencoded',
				     data: {
					     code: code,
					     state: "STATE"
				     },
				     success: function(data){
				       openID = data
				     }
		     });
	     }

	    getOpenID()

    </script>

  </body>
</html>
